﻿$(document).ready(
function()
{
  $("#formcontent .num .btn1").click(
  function()
  {
    var num = $(this).parent().find(".text").val();
    num ++;
    $(this).parent().find(".text").val(num);
  });
  $("#formcontent .num .bnt0").click(
  function()
  {
    var num = Number($(this).parent().find(".text").val());
    if(num>=2)
    num --;
    $(this).parent().find(".text").val(num);
  });
}
);
function closeexchange()
{
  $(".exchangeflow").hide();
}
function showexchange(id)
{
 $(".exchangeflow").hide();
 $("#" + id).show();
}
var imageheight = 400;
var imagewidth = 541;
document.write("<style>* html{background-image: url(image.jpg);}.exchangeflow{position:fixed;_position:absolute;top:" + (document.documentElement.clientHeight - imageheight) / 2 + "px;_top:expression(" + (document.documentElement.clientHeight - imageheight) / 2 + "+((e=document.documentElement.scrollTop)?e:document.body.scrollTop)+'px');_top:expression(" + (document.documentElement.clientHeight - imageheight) / 2 + "+((e=document.documentElement.scrollTop)?e:document.body.scrollTop)+'px');left:" + (document.documentElement.clientWidth - imagewidth) / 2 + "px; _left:expression(" + (document.documentElement.clientWidth - imagewidth) / 2 + "+((e=document.documentElement.scrollLeft)?e:document.body.scrollLeft)+'px');_left:expression(" + (document.documentElement.clientWidth - imagewidth) / 2 + "+((e=document.documentElement.scrollLeft)?e:document.body.scrollLeft)+'px');}</style>");